#include "Flags.h"
#include <iostream>

using namespace std;

Flags::Flags()
{
	//zera
	for(int i=0;i<6;i++)
		flags[i]=false;
}

Flags::~Flags()
{
}

void Flags::setFlag(FlagType f,bool b)
{
	flags[f] =b;
}

bool Flags::getFlag(FlagType f)
{
	return flags[f];
}

void Flags::ImprimirFlags()
{
	cout << "Flags: " <<endl;
	cout << "Flag neg" << neg << ": " << flags[neg] << endl;
	cout << "Flag zero" << zero << ": " << flags[zero] << endl;
	cout << "Flag negzero" << negzero << ": " << flags[negzero] << endl;
	cout << "Flag carry" << carry << ": " << flags[carry] << endl;
	cout << "Flag overflow" << overflow << ": " << flags[overflow] << endl;
	cout << "Flag vero" << vero << ": " << flags[vero] << endl;
}
